package wapbean;

import common.DBHandle;

public class WapcontentBean {
	  private String contentId;
	  private String Title;
	  private String Detail;
	  private String Description;
	  private String CreateDate;
	  private String ProviderID;
	  private String ContentTypeID;
	  private String UsedNum;
	  private String DownNum;
	  private String ContentStatus;
	public String getContentId() {
		return contentId;
	}
	public void setContentId(String contentId) {
		this.contentId = contentId;
	}
	public String getContentStatus() {
		return ContentStatus;
	}
	public void setContentStatus(String contentStatus) {
		ContentStatus = contentStatus;
	}
	public String getContentTypeID() {
		return ContentTypeID;
	}
	public void setContentTypeID(String contentTypeID) {
		ContentTypeID = contentTypeID;
	}
	public String getCreateDate() {
		return CreateDate;
	}
	public void setCreateDate(String createDate) {
		CreateDate = createDate;
	}
	public String getDescription() {
		return Description;
	}
	public void setDescription(String description) {
		Description = description;
	}
	public String getDetail() {
		return Detail;
	}
	public void setDetail(String detail) {
		Detail = detail;
	}
	public String getDownNum() {
		return DownNum;
	}
	public void setDownNum(String downNum) {
		DownNum = downNum;
	}
	public String getProviderID() {
		return ProviderID;
	}
	public void setProviderID(String providerID) {
		ProviderID = providerID;
	}
	public String getTitle() {
		return Title;
	}
	public void setTitle(String title) {
		Title = title;
	}
	public String getUsedNum() {
		return UsedNum;
	}
	public void setUsedNum(String usedNum) {
		UsedNum = usedNum;
	}
 public void updatecontenUsedNum(String contentid) {
	     
	     try {
	     	DBHandle db = new DBHandle();
	       String sql = "update wapcontent set UsedNum='"+this.UsedNum+"'+'1' where contentId='"+contentid+"'";
	     //  System.out.println(sql);
	       db.updateSql(sql);
	      
	     }
	     catch (Exception e) {  
	       e.printStackTrace();  
	     
	     }
	    
	   }
public void updatecontenDownNum(String contentid) {
     
     try {
     	DBHandle db = new DBHandle();
       String sql = "update wapcontent set DownNum='"+this.DownNum+"'+'1' where contentId='"+contentid+"'";  
       db.updateSql(sql);
      
     }
     catch (Exception e) {
       e.printStackTrace();
     
     }
    
   }
	
}
